package com.lsyw.intergrate.mapper;

import com.lsyw.intergrate.entity.MSamplingTaskDetection;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
 * <p>
 * 手动采样任务监测表 Mapper 接口
 * </p>
 *
 * @author 刘磊
 * @since 2024-01-19
 */
@Mapper
public interface MSamplingTaskDetectionMapper extends BaseMapper<MSamplingTaskDetection> {

    @Select("select * from m_sampling_task_detection where del_flag=0 and sampling_task_id=#{id}")
    MSamplingTaskDetection getByTaskId(String id);

    List<Map<String, Object>> getValueByTypeAndMassifId(@Param("type") int type,@Param("massifId") String massifId);
}
